package model

import (
	"time"
)

type AuCarModel struct {
	ModelId       int       `xorm:"not null pk INT(10)"`
	SeriesId      int       `xorm:"not null index INT(10)"`
	Name          string    `xorm:"not null VARCHAR(260)"`
	ProduceStatus int       `xorm:"not null TINYINT(1)"`
	SaleStatus    int       `xorm:"not null TINYINT(1)"`
	Year          int       `xorm:"not null INT(4)"`
	ReferPrice    float64   `xorm:"not null default 0.00 DOUBLE(10,2)"`
	AirInletForm  string    `xorm:"not null VARCHAR(30)"`
	Gearbox       int       `xorm:"not null SMALLINT(3)"`
	Gear          int       `xorm:"not null SMALLINT(3)"`
	CarCc         string    `xorm:"not null VARCHAR(10)"`
	Consumption   float32   `xorm:"not null FLOAT"`
	Status        int       `xorm:"not null default 0 SMALLINT(3)"`
	DetailParams  string    `xorm:"not null TEXT"`
	UpdateTime    time.Time `xorm:"not null DATETIME"`
	FromType      int       `xorm:"not null TINYINT(1)"`
}
